<?php
session_start();
require_once '../config.inc.php';
if(is_null($_SESSION['bbs_user_id'])) {
    $str = <<<END
$('#loginli').html('<a href="login.php">登陆</a>');
$('#registerli').html('<a href="register.php">注册</a>');
END;
} else {
    $str = <<<END
$('#loginli').html('<a href="action/front/do_member.php?action=logout">退出</a>');
END;
}
echo '$(document).ready(function(){'.$str.'})';
?>